                <!-- Begin: widget - Search Detailed -->
                <div class="widget search-detailed">
                    <ul class="tabs">
                        <li><a href="#" class="current">Veículos <span></span></a></li>
                        <li><a href="#">Revendas <span></span></a></li>
                    </ul>
                    <div class="panes">
                        <form id="search-vehicles">
                            <label>Tipo:</label>
                            <select class="input" name="type">
                                <option></option>
<? foreach (DbGet::types() as $type): ?>
                                <option value="<?= $type->id ?>"><?= $type->name ?></option>
<? endforeach ?>
                            </select>
                            <label>Marca:</label>
                            <select class="input disabled" name="brand" disabled>
                                <option></option>
                            </select>
                            <label>Modelo:</label>
                            <select class="input disabled" name="model" disabled>
                                <option></option>
                            </select>
                            <label>Ano:</label>
                            <select class="input half" name="initial-year">
                                <option></option>
<? for ($year = date('Y')+1; $year >= 1930; $year--): ?>
                                <option><?= $year ?></option>
<? endfor ?>
                            </select>
                            <label class="until">à</label>
                            <select class="input half" name="final-year">
                                <option></option>
<? for ($year = date('Y')+1; $year >= 1930; $year--): ?>
                                <option><?= $year ?></option>
<? endfor ?>
                            </select>
                            <label>Preço:</label>
                            <select class="input half" name="initial-price">
                                <option></option>
<? for ($price = 4000; $price <= 100000; $price+= 2000): ?>
                                <option value="<?= $price ?>"><?= Util::format_money($price, 0) ?></option>
<? endfor ?>
                            </select>
                            <label class="until">à</label>
                            <select class="input half" name="final-price">
                                <option></option>
<? for ($price = 4000; $price <= 100000; $price+= 2000): ?>
                                <option value="<?= $price ?>"><?= Util::format_money($price, 0) ?></option>
<? endfor ?>
                            </select>
                            <span>
                                <label>Código:</label>
                                <input class="input half" type="text" name="codigo">
                                <!--<a href="<?= __BASE_URI__ ?>busca-avancada">Busca Avançada</a>-->
                            </span>
                            <input class="submit" type="submit" value="Buscar">
                        </form>
                        <form class="hidden" id="search-resales">
                            <h2>Buscar veículos de revendas:</h2>
                            <label>Cidade:</label>
                            <select class="input" name="city-resale">
                                <option></option>
<? foreach (DbGet::resales_cities() as $city): ?>
                                <option value="<?= $city->id ?>"><?= $city->name ?></option>
<? endforeach ?>
                            </select>
                            <label>Revenda:</label>
                            <select class="input disabled" name="enterprise-resale" disabled>
                                <option></option>
                            </select>
                            <label></label>
                            <h2>Buscar veículos de particulares:</h2>
                            <label>Estado:</label>
                            <select class="input" name="state-private">
                                <option></option>
<? foreach (DbGet::private_states() as $state): ?>
                                <option value="<?= $state->id ?>"><?= $state->name ?></option>
<? endforeach ?>
                            </select>
                            <label>Cidade:</label>
                            <select class="input disabled" name="city-private" disabled>
                                <option></option>
                            </select>
                            <input type="hidden" name="search" value="resales">
                        </form>
                    </div>
                </div> <!-- End -->
